<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>yLib: /home/sky/yLib/include/utility/ylog.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">yLib
   &#160;<span id="projectnumber">V0.0.9 beta</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('ylog_8hpp.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">ylog.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;unordered_map&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &quot;<a class="el" href="yobject_8hpp_source.html">core/yobject.hpp</a>&quot;</code><br />
</div>
<p><a href="ylog_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structSubCategoryProperty.html">SubCategoryProperty</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classyLib_1_1yLog.html">yLib::yLog</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is log-class based on log4cpp in <a class="el" href="namespaceyLib.html" title="This is a top namespace in yLib.">yLib</a>.  <a href="classyLib_1_1yLog.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceyLib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceyLib.html">yLib</a></td></tr>
<tr class="memdesc:namespaceyLib"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a top namespace in <a class="el" href="namespaceyLib.html" title="This is a top namespace in yLib.">yLib</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a8b8af8bedcac87c0d3c68634448b94a7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#a8b8af8bedcac87c0d3c68634448b94a7">MSG_BUF_SIZE</a>&#160;&#160;&#160;4096</td></tr>
<tr class="memdesc:a8b8af8bedcac87c0d3c68634448b94a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The max string buffer of yLog.  <a href="ylog_8hpp.html#a8b8af8bedcac87c0d3c68634448b94a7">More...</a><br /></td></tr>
<tr class="separator:a8b8af8bedcac87c0d3c68634448b94a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aced280dedfb9d8f58b069c7a1f80c4ae"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#aced280dedfb9d8f58b069c7a1f80c4ae">ENABLE_DEBUG_LOG_LEVEL</a>&#160;&#160;&#160;0x01</td></tr>
<tr class="separator:aced280dedfb9d8f58b069c7a1f80c4ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09c60e92e112d65ddbacc436aa07deb1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#a09c60e92e112d65ddbacc436aa07deb1">ENABLE_INFO_LOG_LEVEL</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a09c60e92e112d65ddbacc436aa07deb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10f2665cc4ac0677065465bb223fca82"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#a10f2665cc4ac0677065465bb223fca82">ENABLE_WARN_LOG_LEVEL</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="separator:a10f2665cc4ac0677065465bb223fca82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c2526c8361b57ec2e1b6329c0fc24a2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#a5c2526c8361b57ec2e1b6329c0fc24a2">ENABLE_ERROR_LOG_LEVEL</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a5c2526c8361b57ec2e1b6329c0fc24a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad161b25638e6ab25dae2036ac895252d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#ad161b25638e6ab25dae2036ac895252d">ENABLE_ALL_LOG_LEVEL</a>&#160;&#160;&#160;(<a class="el" href="ylog_8hpp.html#aced280dedfb9d8f58b069c7a1f80c4ae">ENABLE_DEBUG_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a09c60e92e112d65ddbacc436aa07deb1">ENABLE_INFO_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a10f2665cc4ac0677065465bb223fca82">ENABLE_WARN_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a5c2526c8361b57ec2e1b6329c0fc24a2">ENABLE_ERROR_LOG_LEVEL</a>)</td></tr>
<tr class="separator:ad161b25638e6ab25dae2036ac895252d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70a0ad84667cf6a47cbdbee2d127457c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ylog_8hpp.html#a70a0ad84667cf6a47cbdbee2d127457c">DISABLE_ALL_LOG_LEVEL</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:a70a0ad84667cf6a47cbdbee2d127457c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:aafac5e659058b54da4669f945e6e55c5"><td class="memItemLeft" align="right" valign="top">typedef std::unordered_map&lt; <a class="el" href="src_2CMakeLists_8txt.html#a296644e9ff1d0a602b4703f361406374">std::string</a>, <a class="el" href="structSubCategoryProperty.html">SubCategoryProperty</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceyLib.html#aafac5e659058b54da4669f945e6e55c5">yLib::TypeSubCategoryMap</a></td></tr>
<tr class="separator:aafac5e659058b54da4669f945e6e55c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:aba38c805e216325a931550a322517342"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342">yLib::yLogLevel</a> : uint16_t { <br />
&#160;&#160;<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a0fd7d6244725d42859bb1fb27738c2af">yLib::_DISABLE_ALL_LOG_LEVEL_</a> = 0x0000, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a55ec417518856b1870d0ce693cecc100">yLib::_ENABLE_DEBUG_LOG_LEVEL_</a> = 0x0001, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a214e99a31ab7b6b570e53837391feced">yLib::_DISABLE_DEBUG_LOG_LEVEL_</a> = (uint16_t)~_ENABLE_DEBUG_LOG_LEVEL_, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a6b6c5b0e8906001ab7a7e914cf5d8ea9">yLib::_ENABLE_INFO_LOG_LEVEL_</a> = 0x0002, 
<br />
&#160;&#160;<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342acaa38d80f78fd2122b196c98de6ad6ec">yLib::_DISABLE_INFO_LOG_LEVEL_</a> = (uint16_t)~_ENABLE_INFO_LOG_LEVEL_, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342aee0eb9242e824b44c016a78530e886de">yLib::_ENABLE_WARN_LOG_LEVEL_</a> = 0x0004, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a0ee94de6edb6e2c0a07f803d0479c823">yLib::_DISABLE_WARN_LOG_LEVEL_</a> = (uint16_t)~_ENABLE_WARN_LOG_LEVEL_, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a6672d74e17f387c6498391f81871a830">yLib::_ENABLE_ERROR_LOG_LEVEL_</a> = 0x0008, 
<br />
&#160;&#160;<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a8a728eaa8d302d8808a741b63a951c8a">yLib::_DISABLE_ERROR_LOG_LEVEL_</a> = (uint16_t)~_ENABLE_ERROR_LOG_LEVEL_, 
<a class="el" href="namespaceyLib.html#aba38c805e216325a931550a322517342a5315323b10df8c5224204dad6ee3dcff">yLib::_ENABLE_ALL_LOG_LEVEL_</a> = 0xFFFF
<br />
 }</td></tr>
<tr class="memdesc:aba38c805e216325a931550a322517342"><td class="mdescLeft">&#160;</td><td class="mdescRight">the level of ylog.  <a href="namespaceyLib.html#aba38c805e216325a931550a322517342">More...</a><br /></td></tr>
<tr class="separator:aba38c805e216325a931550a322517342"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a70a0ad84667cf6a47cbdbee2d127457c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70a0ad84667cf6a47cbdbee2d127457c">&#9670;&nbsp;</a></span>DISABLE_ALL_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DISABLE_ALL_LOG_LEVEL&#160;&#160;&#160;0x00</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad161b25638e6ab25dae2036ac895252d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad161b25638e6ab25dae2036ac895252d">&#9670;&nbsp;</a></span>ENABLE_ALL_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENABLE_ALL_LOG_LEVEL&#160;&#160;&#160;(<a class="el" href="ylog_8hpp.html#aced280dedfb9d8f58b069c7a1f80c4ae">ENABLE_DEBUG_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a09c60e92e112d65ddbacc436aa07deb1">ENABLE_INFO_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a10f2665cc4ac0677065465bb223fca82">ENABLE_WARN_LOG_LEVEL</a> | <a class="el" href="ylog_8hpp.html#a5c2526c8361b57ec2e1b6329c0fc24a2">ENABLE_ERROR_LOG_LEVEL</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aced280dedfb9d8f58b069c7a1f80c4ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aced280dedfb9d8f58b069c7a1f80c4ae">&#9670;&nbsp;</a></span>ENABLE_DEBUG_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENABLE_DEBUG_LOG_LEVEL&#160;&#160;&#160;0x01</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5c2526c8361b57ec2e1b6329c0fc24a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c2526c8361b57ec2e1b6329c0fc24a2">&#9670;&nbsp;</a></span>ENABLE_ERROR_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENABLE_ERROR_LOG_LEVEL&#160;&#160;&#160;0x08</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a09c60e92e112d65ddbacc436aa07deb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09c60e92e112d65ddbacc436aa07deb1">&#9670;&nbsp;</a></span>ENABLE_INFO_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENABLE_INFO_LOG_LEVEL&#160;&#160;&#160;0x02</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a10f2665cc4ac0677065465bb223fca82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10f2665cc4ac0677065465bb223fca82">&#9670;&nbsp;</a></span>ENABLE_WARN_LOG_LEVEL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ENABLE_WARN_LOG_LEVEL&#160;&#160;&#160;0x04</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8b8af8bedcac87c0d3c68634448b94a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b8af8bedcac87c0d3c68634448b94a7">&#9670;&nbsp;</a></span>MSG_BUF_SIZE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MSG_BUF_SIZE&#160;&#160;&#160;4096</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The max string buffer of yLog. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_3a4d35156996fb70540e167b84a39bd1.html">utility</a></li><li class="navelem"><a class="el" href="ylog_8hpp.html">ylog.hpp</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
